package demo2;

import java.util.Scanner;

interface Compute {
    public int compute(int n, int m) ;
}

class Add implements Compute {
    public int compute(int n, int m) {
        System.out.println(n+"+"+m+"="+(n+m));
        return n+m;
    }
}

class Sub implements Compute {
    public int compute(int n, int m) {
        System.out.println(n+"-"+m+"="+(n-m));
        return n-m;
    }
}

class UseCompute {
    public void useCom(Compute com, int a, int b) {
        int ret = com.compute(a,b);
    }
}

public class test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        UseCompute useCompute = new UseCompute();
        useCompute.useCom(new Add(),a,b);
        useCompute.useCom(new Sub(),a,b);
    }
}
